home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / devtools / automake-1.0.tar.gz / automake-1.0.tar / automake-1.0 / tests / defs < prev    next >
Text File  |  1996-05-17  |  1KB  |  49 lines

  1. # -*- ksh -*-
  2. # Defines for Automake testing environment.
  3. # Tom Tromey <tromey@cygnus.com>
  4.  
  5. # Ensure $srcdir set correctly.
  6. test -f $srcdir/defs || {
  7.    echo "defs: installation error" 1>&2
  8.    exit 1
  9. }
  10.  
  11. # If srcdir is relative, we need to modify it.
  12. case "$srcdir" in
  13.  /*)
  14.     ;;
  15.  
  16.  *)
  17.     srcdir="../$srcdir"
  18.     ;;
  19. esac
  20.  
  21. rm -rf testSubDir > /dev/null 2>&1
  22. mkdir testSubDir
  23. cd testSubDir
  24.  
  25. # Build appropriate environment in test directory.  Eg create
  26. # configure.in, touch all necessary files, etc.
  27. cat > configure.in << 'END'
  28. PACKAGE=nonesuch
  29. VERSION=nonesuch
  30. AC_ARG_PROGRAM
  31. fp_PROG_INSTALL
  32. AC_OUTPUT(Makefile)
  33. END
  34.  
  35. : > install-sh
  36. : > mkinstalldirs
  37.  
  38. # See how redirections should work.
  39. test -z "$VERBOSE" && {
  40.    exec > /dev/null 2>&1
  41. }
  42.  
  43. echo "=== Running test $0"
  44.  
  45. # See how Automake should be run.  We put --foreign as the default
  46. # strictness to avoid having to create lots and lots of files.  A test
  47. # can override this by specifying a different strictness.
  48. AUTOMAKE="../../automake --amdir=$srcdir/.. --foreign"
  49.